package com.zjt.entity.brandcategory;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-24
 * Time: AM5:29
 * To change this template use File | Settings | File Templates.
 */

import com.zjt.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 品牌信息表 商标名称
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name="s_brand")
public class Brand extends BaseEntity {
    private String chName;
    private String enName;
    private Integer status;//1，正常，
    private Integer categoryCount;//关联类别数量
    private Integer productCount;//关联产品数量
    private String alias;//关键词等
    private Long factoryId;//厂家名称；//关联 factoryInfo中的信息，一个brand只能属于一个厂家
    public String getChName() {
        return chName;
    }

    public void setChName(String chName) {
        this.chName = chName;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCategoryCount() {
        return categoryCount;
    }

    public void setCategoryCount(Integer categoryCount) {
        this.categoryCount = categoryCount;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public Long getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Long factoryId) {
        this.factoryId = factoryId;
    }

    @Override
    public String toString() {
        return "Brand{" +
                "chName='" + chName + '\'' +
                ", enName='" + enName + '\'' +
                ", status=" + status +
                ", categoryCount=" + categoryCount +
                ", productCount=" + productCount +
                ", alias='" + alias + '\'' +
                ", factoryId=" + factoryId +
                '}';
    }
}
